home *** CD-ROM | disk | FTP | other *** search
- Path: oldsuna.gmr.com!news
- From: David Brown <dbrown@cgs.c4.gmeds.com>
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: Tue, 27 Feb 1996 14:33:43 -0500
- Organization: Electronic Data Systems
- Message-ID: <31335C97.41C6@cgs.c4.gmeds.com>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <4gn5d8$t5f@newsbf02.news.aol.com> <4gril3$sn9@goanna.cs.rmit.EDU.AU> <31320777.2810@corp.dialog.com> <4gt5sm$jra@fountain.mindlink.net>
- NNTP-Posting-Host: reality.cs.gmr.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP19)
-
- I just thought I would throw my two cents into the fray :-)
-
- I have programmed in PL/I and C. When I first started using C I thought
- it was not as good a language as PL/I. This was partly due to my level
- of knowledge of the language. The more I use it the more I like it.
-
- The programming style used in C is very different from PL/I because of
- pointers and arrays. Once I modified my programming style to be more C
- I appreciated the language more. For example, I like typed pointers,
- typedef's, pointer arithmetic.
-
- However, there are some things which I miss in PL/I. Self defining
- varying length structures, better character string manipulation area
- variables, and better preprocessor. I sure if I thought about it there
- would be others.
-
- Both languages have features I hate. C's inability to skip levels of
- data structures. C's complex declarations. PL/I's complex I/O.
- PL/I's lack of bit shift functions. PL/I's complex automatic conversion
- rules.
-
- When I first started using C it was very easy to hurt yourself. Since
- then ANSI C with prototypes and stricter casting rules has made it
- harder, but I still think it is easier to produce a bug in C then in
- PL/I. However, the reality is there are more C debuggers and tools
- being produced then PL/I. As time goes on C will become more productive
- simply because of the quality of the tools.
-
- Because of the development environment issue I usually push C over PL/I.
- That doesn't mean it is a bad language.
-
- David
-